package com.jh.user.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author zhugu
 * 2018/11/29 9:21
 */
public class FastSilverPicPathResponse implements Serializable {
    private static final long serialVersionUID = -5207468394561792486L;

    private long id;

    /**
     * 用户id
     */
    private long userId;

    /**
     * 门头照
     */
    private String merchantHeadPic;

    /**
     * 收银台照
     */
    private String merchantChechPic;

    /**
     * 经营场所照
     */
    private String otherPhotoThreePic;

    /**
     * 法人身份证正面照
     */
    private String identityFacePic;

    /**
     * 法人身份证反面照
     */
    private String identityBackPic;

    /**
     * 开户许可证照
     */
    private String businessCardPic;

    /**
     * 营业执照照
     */
    private String businessPic;

    /**
     * 结算人身份证正面照
     */
    private String identityFaceCopyPic;

    /**
     * 结算人身份证反面照
     */
    private String identityBackCpoyPic;

    /**
     * 手持身份证照片
     */
    private String identityBodyPic;

    /**
     * 非法人对私授权函
     */
    private String otherPhotoFourPic;

    /**
     * 租房合同
     */
    private String otherPhotoTwoPic;

    /**
     * 其他资料
     */
    private String otherPhotoPic;

    /**
     * 内部前台照片
     */
    private String firstPhotoPic;

    /**
     * 银行卡正面照片
     */
    private String bankFrontPhotoPic;

    /**
     * 银行卡反面照片
     */
    private String bankReversePhotoPic;

    /**
     * 商户场景照片
     */
    private String mchScenePhotoPic;

    /**
     * 商户总分店关系证明
     */
    private String relationshipPhotoPic;

    /**
     * 商户增值协议
     */
    private String merchantPhotoPic;

    private Date updateTime;

    private Date createTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getMerchantHeadPic() {
        return merchantHeadPic;
    }

    public void setMerchantHeadPic(String merchantHeadPic) {
        this.merchantHeadPic = merchantHeadPic;
    }

    public String getMerchantChechPic() {
        return merchantChechPic;
    }

    public void setMerchantChechPic(String merchantChechPic) {
        this.merchantChechPic = merchantChechPic;
    }

    public String getOtherPhotoThreePic() {
        return otherPhotoThreePic;
    }

    public void setOtherPhotoThreePic(String otherPhotoThreePic) {
        this.otherPhotoThreePic = otherPhotoThreePic;
    }

    public String getIdentityFacePic() {
        return identityFacePic;
    }

    public void setIdentityFacePic(String identityFacePic) {
        this.identityFacePic = identityFacePic;
    }

    public String getIdentityBackPic() {
        return identityBackPic;
    }

    public void setIdentityBackPic(String identityBackPic) {
        this.identityBackPic = identityBackPic;
    }

    public String getBusinessCardPic() {
        return businessCardPic;
    }

    public void setBusinessCardPic(String businessCardPic) {
        this.businessCardPic = businessCardPic;
    }

    public String getBusinessPic() {
        return businessPic;
    }

    public void setBusinessPic(String businessPic) {
        this.businessPic = businessPic;
    }

    public String getIdentityFaceCopyPic() {
        return identityFaceCopyPic;
    }

    public void setIdentityFaceCopyPic(String identityFaceCopyPic) {
        this.identityFaceCopyPic = identityFaceCopyPic;
    }

    public String getIdentityBackCpoyPic() {
        return identityBackCpoyPic;
    }

    public void setIdentityBackCpoyPic(String identityBackCpoyPic) {
        this.identityBackCpoyPic = identityBackCpoyPic;
    }

    public String getIdentityBodyPic() {
        return identityBodyPic;
    }

    public void setIdentityBodyPic(String identityBodyPic) {
        this.identityBodyPic = identityBodyPic;
    }

    public String getOtherPhotoFourPic() {
        return otherPhotoFourPic;
    }

    public void setOtherPhotoFourPic(String otherPhotoFourPic) {
        this.otherPhotoFourPic = otherPhotoFourPic;
    }

    public String getOtherPhotoTwoPic() {
        return otherPhotoTwoPic;
    }

    public void setOtherPhotoTwoPic(String otherPhotoTwoPic) {
        this.otherPhotoTwoPic = otherPhotoTwoPic;
    }

    public String getOtherPhotoPic() {
        return otherPhotoPic;
    }

    public void setOtherPhotoPic(String otherPhotoPic) {
        this.otherPhotoPic = otherPhotoPic;
    }

    public String getFirstPhotoPic() {
        return firstPhotoPic;
    }

    public void setFirstPhotoPic(String firstPhotoPic) {
        this.firstPhotoPic = firstPhotoPic;
    }

    public String getBankFrontPhotoPic() {
        return bankFrontPhotoPic;
    }

    public void setBankFrontPhotoPic(String bankFrontPhotoPic) {
        this.bankFrontPhotoPic = bankFrontPhotoPic;
    }

    public String getBankReversePhotoPic() {
        return bankReversePhotoPic;
    }

    public void setBankReversePhotoPic(String bankReversePhotoPic) {
        this.bankReversePhotoPic = bankReversePhotoPic;
    }

    public String getMchScenePhotoPic() {
        return mchScenePhotoPic;
    }

    public void setMchScenePhotoPic(String mchScenePhotoPic) {
        this.mchScenePhotoPic = mchScenePhotoPic;
    }

    public String getRelationshipPhotoPic() {
        return relationshipPhotoPic;
    }

    public void setRelationshipPhotoPic(String relationshipPhotoPic) {
        this.relationshipPhotoPic = relationshipPhotoPic;
    }

    public String getMerchantPhotoPic() {
        return merchantPhotoPic;
    }

    public void setMerchantPhotoPic(String merchantPhotoPic) {
        this.merchantPhotoPic = merchantPhotoPic;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof FastSilverPicPathResponse)) return false;
        FastSilverPicPathResponse response = (FastSilverPicPathResponse) o;
        return getId() == response.getId() &&
                getUserId() == response.getUserId() &&
                Objects.equals(getMerchantHeadPic(), response.getMerchantHeadPic()) &&
                Objects.equals(getMerchantChechPic(), response.getMerchantChechPic()) &&
                Objects.equals(getOtherPhotoThreePic(), response.getOtherPhotoThreePic()) &&
                Objects.equals(getIdentityFacePic(), response.getIdentityFacePic()) &&
                Objects.equals(getIdentityBackPic(), response.getIdentityBackPic()) &&
                Objects.equals(getBusinessCardPic(), response.getBusinessCardPic()) &&
                Objects.equals(getBusinessPic(), response.getBusinessPic()) &&
                Objects.equals(getIdentityFaceCopyPic(), response.getIdentityFaceCopyPic()) &&
                Objects.equals(getIdentityBackCpoyPic(), response.getIdentityBackCpoyPic()) &&
                Objects.equals(getIdentityBodyPic(), response.getIdentityBodyPic()) &&
                Objects.equals(getOtherPhotoFourPic(), response.getOtherPhotoFourPic()) &&
                Objects.equals(getOtherPhotoTwoPic(), response.getOtherPhotoTwoPic()) &&
                Objects.equals(getOtherPhotoPic(), response.getOtherPhotoPic()) &&
                Objects.equals(getFirstPhotoPic(), response.getFirstPhotoPic()) &&
                Objects.equals(getBankFrontPhotoPic(), response.getBankFrontPhotoPic()) &&
                Objects.equals(getBankReversePhotoPic(), response.getBankReversePhotoPic()) &&
                Objects.equals(getMchScenePhotoPic(), response.getMchScenePhotoPic()) &&
                Objects.equals(getRelationshipPhotoPic(), response.getRelationshipPhotoPic()) &&
                Objects.equals(getMerchantPhotoPic(), response.getMerchantPhotoPic()) &&
                Objects.equals(getUpdateTime(), response.getUpdateTime()) &&
                Objects.equals(getCreateTime(), response.getCreateTime());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getUserId(), getMerchantHeadPic(), getMerchantChechPic(), getOtherPhotoThreePic(), getIdentityFacePic(), getIdentityBackPic(), getBusinessCardPic(), getBusinessPic(), getIdentityFaceCopyPic(), getIdentityBackCpoyPic(), getIdentityBodyPic(), getOtherPhotoFourPic(), getOtherPhotoTwoPic(), getOtherPhotoPic(), getFirstPhotoPic(), getBankFrontPhotoPic(), getBankReversePhotoPic(), getMchScenePhotoPic(), getRelationshipPhotoPic(), getMerchantPhotoPic(), getUpdateTime(), getCreateTime());
    }

    @Override
    public String toString() {
        return "FastSilverPicPathResponse{" +
                "id=" + id +
                ", userId=" + userId +
                ", merchantHeadPic='" + merchantHeadPic + '\'' +
                ", merchantChechPic='" + merchantChechPic + '\'' +
                ", otherPhotoThreePic='" + otherPhotoThreePic + '\'' +
                ", identityFacePic='" + identityFacePic + '\'' +
                ", identityBackPic='" + identityBackPic + '\'' +
                ", businessCardPic='" + businessCardPic + '\'' +
                ", businessPic='" + businessPic + '\'' +
                ", identityFaceCopyPic='" + identityFaceCopyPic + '\'' +
                ", identityBackCpoyPic='" + identityBackCpoyPic + '\'' +
                ", identityBodyPic='" + identityBodyPic + '\'' +
                ", otherPhotoFourPic='" + otherPhotoFourPic + '\'' +
                ", otherPhotoTwoPic='" + otherPhotoTwoPic + '\'' +
                ", otherPhotoPic='" + otherPhotoPic + '\'' +
                ", firstPhotoPic='" + firstPhotoPic + '\'' +
                ", bankFrontPhotoPic='" + bankFrontPhotoPic + '\'' +
                ", bankReversePhotoPic='" + bankReversePhotoPic + '\'' +
                ", mchScenePhotoPic='" + mchScenePhotoPic + '\'' +
                ", relationshipPhotoPic='" + relationshipPhotoPic + '\'' +
                ", merchantPhotoPic='" + merchantPhotoPic + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                '}';
    }

    public void addFastSilverPicPathResponse(FastSilverPicPath save) {
        setId(save.getId());
        setUserId(save.getUserId());
        setMerchantHeadPic(save.getMerchantHead());
        setMerchantChechPic(save.getMerchantChech());
        setOtherPhotoThreePic(save.getOtherPhotoThree());
        setIdentityFacePic(save.getIdentityFace());
        setIdentityBackPic(save.getIdentityBack());
        setBusinessCardPic(save.getBusinessCard());
        setBusinessPic(save.getBusiness());
        setIdentityFaceCopyPic(save.getIdentityFaceCopy());
        setIdentityBackCpoyPic(save.getIdentityBackCpoy());
        setIdentityBodyPic(save.getIdentityBody());
        setOtherPhotoFourPic(save.getOtherPhotoFour());
        setOtherPhotoTwoPic(save.getOtherPhotoTwo());
        setOtherPhotoPic(save.getOtherPhoto());
        // 新增图片
        setFirstPhotoPic(save.getFirstPhoto());
        setBankFrontPhotoPic(save.getBankFrontPhoto());
        setBankReversePhotoPic(save.getBankReversePhoto());
        setMchScenePhotoPic(save.getMchScenePhoto());
        setRelationshipPhotoPic(save.getRelationshipPhoto());
        setMerchantPhotoPic(save.getMerchantPhoto());
        setUpdateTime(save.getUpdateTime());
        setCreateTime(save.getCreateTime());
    }
}
